#ifndef LOBBY_EVENT_MGR_H_2017_01_14
#define LOBBY_EVENT_MGR_H_2017_01_14
#include "ieventmgr.h"
#include "../logic/char_mng.h"
class lobbyeventmgr :public ieventmgr
{
public:
	lobbyeventmgr():_char_mgr(NULL)
	{
	}
	virtual ~lobbyeventmgr()
	{
		if(_char_mgr)
			delete _char_mgr, _char_mgr =NULL;
	}
	virtual bool init()
	{
		_char_mgr = new CCharManager();
		return true;
	}
	virtual void deal_with(Event* ev, unsigned int index, unsigned int cmd, unsigned int serverid =0)
	{
		//lobby event dealmgr
		if(cmd > PFPE_START && cmd < PFPE_MAX)
		{
			//player 
		}
		else if(cmd > MFPE_START && cmd < MFPE_MAX)
		{
			//mgr
		}
		else
		{
			//error cmd ...
		}
	}
private:
	ICharManager * _char_mgr;
};
#endif//LOBBY_EVENT_MGR_H_2017_01_14